package com.flyoil.petromp.entity.entity_notice;

import com.flyoil.petromp.base.BaseEntity;

import java.util.List;

/**
 * Created by songzhiiyn on 2017/10/11.
 * 公告列表的实体类
 */

public class NoticeEntity extends BaseEntity {


    /**
     * data : {"list":[{"id":2,"title":"公告","username":"张三","content":"公告内容","createdTimeLabel":"2017-11-26 11:05:28"},{"id":1,"title":"公告","username":"张三","content":"公告内容","createdTimeLabel":"2017-11-26 11:05:02"}],"total":2,"pageNumber":1,"pageSize":20}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * list : [{"id":2,"title":"公告","username":"张三","content":"公告内容","createdTimeLabel":"2017-11-26 11:05:28"},{"id":1,"title":"公告","username":"张三","content":"公告内容","createdTimeLabel":"2017-11-26 11:05:02"}]
         * total : 2
         * pageNumber : 1
         * pageSize : 20
         */

        private int total;
        private int pageNumber;
        private int pageSize;
        private List<ListBean> list;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPageNumber() {
            return pageNumber;
        }

        public void setPageNumber(int pageNumber) {
            this.pageNumber = pageNumber;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * id : 2
             * title : 公告
             * username : 张三
             * content : 公告内容
             * createdTimeLabel : 2017-11-26 11:05:28
             */

            private int id;
            private String title;
            private String username;
            private boolean isRead;
            private String content;
            private String createdTimeLabel;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getUsername() {
                return username;
            }

            public boolean isRead() {
                return isRead;
            }

            public void setRead(boolean read) {
                isRead = read;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getCreatedTimeLabel() {
                return createdTimeLabel;
            }

            public void setCreatedTimeLabel(String createdTimeLabel) {
                this.createdTimeLabel = createdTimeLabel;
            }
        }
    }
}
